package org.cug.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.cug.pojo.GraduateTraining;


import java.util.List;

@Mapper
public interface GraduateTrainingMapper {
    List<GraduateTraining> list(List<Integer> ids, Short semester);

    void insert(GraduateTraining graduateEdu);

    @Delete("delete from graduate_training where id=#{id}")
    void delete(Integer id);

    @Select("select * from graduate_training where id=#{id}")
    GraduateTraining selectid(Integer id);

    void update(GraduateTraining graduateEdu);

    List<GraduateTraining> listall(Short semester);
}
